import request from '@/utils/request'

// 获取待办事宜标题，流程信息、流转记录
export function getFlowBefore(id,data) {
    return request({
		url:`/api/workflow/Engine/FlowBefore/${id}`,
        method: 'GET',
		data,
		options: {
			load: false
		}
    })
}

// 获取待办事宜表单信息
export function getFlowBeforeForm(id) {
    return request({
        url: '/api/Business/defecthandle/' + id,
        method: 'GET',
		options: {
			load: false
		}
    })
}

// 待办事宜通过/拒绝
export function subAudit(id,data) {
    return request({
        url: '/api/workflow/Engine/FlowBefore/Audit/'+id,
        method: 'POST',
		data
    })
}

// 待办事宜转审
export function Transfer(id,data) {
    return request({
        url: '/api/workflow/Engine/FlowBefore/Transfer/'+id,
        method: 'POST',
		data
    })
}
